package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the purchase database table.
 * 
 */
@Entity
@NamedQuery(name="Purchase.findAll", query="SELECT p FROM Purchase p")
public class Purchase implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int purid;

	private int gid;

	private int nonum;

	private int pdtime;

	private BigDecimal price;

	@Temporal(TemporalType.DATE)
	private Date purdate;

	private int purnum;

	private BigDecimal purprice;

	private String remark;

	private int yesnum;

	//bi-directional many-to-one association to Scheduleform
	@ManyToOne
	@JoinColumn(name="schno")
	private Scheduleform scheduleform;

	public Purchase() {
	}

	public int getPurid() {
		return this.purid;
	}

	public void setPurid(int purid) {
		this.purid = purid;
	}

	public int getGid() {
		return this.gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public int getNonum() {
		return this.nonum;
	}

	public void setNonum(int nonum) {
		this.nonum = nonum;
	}

	public int getPdtime() {
		return this.pdtime;
	}

	public void setPdtime(int pdtime) {
		this.pdtime = pdtime;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Date getPurdate() {
		return this.purdate;
	}

	public void setPurdate(Date purdate) {
		this.purdate = purdate;
	}

	public int getPurnum() {
		return this.purnum;
	}

	public void setPurnum(int purnum) {
		this.purnum = purnum;
	}

	public BigDecimal getPurprice() {
		return this.purprice;
	}

	public void setPurprice(BigDecimal purprice) {
		this.purprice = purprice;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getYesnum() {
		return this.yesnum;
	}

	public void setYesnum(int yesnum) {
		this.yesnum = yesnum;
	}

	public Scheduleform getScheduleform() {
		return this.scheduleform;
	}

	public void setScheduleform(Scheduleform scheduleform) {
		this.scheduleform = scheduleform;
	}

}